<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
		<style type="text/css">
			.blue {
				color: #00FFFF;
			}

			.size {
				font-size: 30px;
			}
		</style>
	</head>
	<body>
		<button type="button">小狗</button>
		<div id="demo1" style="color: #00FFFF;">闫佳鹏是剑</div>
		<div id="demo1">闫佳鹏是枪</div>
		<p id="demo2">关鑫鹏是刀</p>
		<p id="demo2">关鑫鹏是枪</p>
		<script type="text/javascript">
			$(function() {
				$("button").click(function() {
					$("div").toggleClass("blue")
					$("p").toggleClass("size")
				})

			})
		</script>
	</body>
</html>
